]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Animate activate-discrete-gpu action in the AppIconMenu
authorJonas Dreßler <verdre@v0yd.nl>
Thu, 8 Aug 2019 16:15:32 +0000 (18:15 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Thu, 8 Aug 2019 16:48:48 +0000 (16:48 +0000)
Just as we animate the apps launch using the zoom out animation if the
'new-window' action provided by the app is launched, we should also show
this animation if the 'activate-discrete-gpu' action provided by the app
via its AppInfo is launched.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/673

js/ui/appDisplay.js

index dbb112104f0053185b1511dc6d78b83631792934..d028e4cdbe4489e2dd49a5370659180c48fc6028 100644 (file)
@@ -2056,7 +2056,8 @@ var AppIconMenu = class AppIconMenu extends PopupMenu.PopupMenu {
                 let action = actions[i];
                 let item = this._appendMenuItem(appInfo.get_action_name(action));
                 item.connect('activate', (emitter, event) => {
-                    if (action == 'new-window')
+                    if (action == 'new-window' ||
+                        action == 'activate-discrete-gpu')
                         this._source.animateLaunch();
 
                     this._source.app.launch_action(action, event.get_time(), -1);